<include file="public@header" />
</head>
<body>
<div class="wrap">

    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('goods/editPost')}">

        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">商品名称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="name" name="name" value="{$list.name}" >
            </div>
        </div>

        <div class="form-group">
            <label for="photo-1-name" class="col-sm-2 control-label">
                <span class="form-required">*</span>
                照片
            </label>
            <div class="col-md-6 col-sm-10">
                <input id="photo-1" type="hidden" name="image" value="{$list.image}" >
                <input id="photo-1-name" type="text"  title="图片名称" value="{$list.image}" readonly disabled >
                <img src="{$list.image}" id="photo-1-preview" style="width: 50px" >
                <a href="javascript:uploadOneImage('图片上传','#photo-1');" class="btn-primary btn">上传</a>
            </div>
        </div>

        <div class="form-group">
            <label for="yf" class="col-sm-2 control-label">运费</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="yf" name="yf" style="width: 200px" value="{$list.yf}">
            </div>
        </div>

        <div class="form-group">
            <label   class="col-sm-2 control-label">
                商品状态
            </label>
            <div for="status" class="col-md-6 col-sm-10">
                <select name="status" id="status" class="form-control">
                    <option>请选择商品状态</option>
                    <option value="0" <eq name="$list.status" value="0"> selected </eq>>无货</option>
                    <option value="1" <eq name="$list.status" value="1"> selected </eq>>正常</option>
                    <option value="2" <eq name="$list.status" value="2"> selected </eq>>下架</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="jy" class="col-sm-2 control-label">
                是否经营
            </label>
            <div class="col-md-6 col-sm-10 margin-top-10">
                <select name="jy" id="jy" class="form-control">
                    <option>请选择展示状态</option>
                    <option value="0" <eq name="$list.jy" value="0"> selected </eq>>是</option>
                    <option value="1" <eq name="$list.jy" value="1"> selected </eq>>否</option>
                </select>
            </div>
        </div>



        <input type="hidden" name="id" value="{$list.id}" />
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>